<template>
    <div>
        <header class="pr white" style="padding: 45px 0px 40px;">
            <img src="../../assets/images/7.jpg" class="displayB centerauto shadowB" style="max-width: 70%;margin: 0px auto;padding: 10px;background: #fff;" />
        </header>
        <van-cell-group>
            <van-cell title="设置支付密码" is-link to="/applypas" v-if="isSet" />
            <van-cell title="修改支付密码" is-link to="/editapplypas" />
            <van-cell title="修改登录密码" is-link to="/editloginpas" />
        </van-cell-group>
    </div>
</template>
<script>

    import '@/assets/css/main.css'
    export default {
        data(){
            return{
                infoData: {},
                isSet: true,
            }
        },
        methods: {
            init(){
                
                if(this.$route.query.set == 1){  //尚未设置过支付密码
                    this.isSet = true;
                }else if(this.$route.query.set == 2){  //已设置
                    this.isSet = false;
                }
            },
        },
        mounted(){
            this.init();
        },
    }
</script>